package cn.com.starbucks.basic.config;

import cn.com.starbucks.activity.manager.TestManager;
import cn.com.starbucks.activity.mapper.TestMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * Description:  manager层的bean注册
 *
 * @author tecsmile@outlook.com
 * @version 1.0
 * @date 2021/4/16 9:56 上午
 **/
@Configuration
public class MapperConfigBean {
    @Bean
    public TestManager testManager(TestMapper testMapper, RedisTemplate<String, Object> redisTemplate) {
        return new TestManager(testMapper, redisTemplate);
    }
}
